package online.hxstar.learn;

import java.util.stream.IntStream;

/**
 * @author xinghu
 * @version 1.0
 * @date 2019/11/11 4:54 下午
 */
public class OtherTest {
	public static void main(String[] args) {
		System.out.println(hash("huxing"));

		IntStream.range(1, 15).forEach(item -> {
			System.out.println(hash(item) & 32);
		});

	}

	private static int hash(Object key) {
		int h;
		return (key == null) ? 0 : (h = key.hashCode()) ^ (h >>> 16);
	}
}
